package prototype.exception;

import com.google.gson.JsonObject;

/**
 * Ошибка утентификации или таймаут сессии
 */
public class UnauthorizedException extends AbstractExeption {

	private UnauthorizedException() {
		super("Unauthorized");
	}

	@Override
	public JsonObject toJsonObject() {
		final JsonObject jsonObject=super.toJsonObject();
		return jsonObject;
	}

	private static UnauthorizedException instance = new UnauthorizedException();

	public static UnauthorizedException getInstance() {
		return instance;
	}
}
